package com.aspose.cells;

public class AboveAverage {
   private boolean a = true;
   private boolean b = false;
   private int c;

   void a(AboveAverage var1) {
      this.a = var1.a;
      this.b = var1.b;
      this.c = var1.c;
   }

   public boolean isAboveAverage() {
      return this.a;
   }

   public void setAboveAverage(boolean value) {
      this.a = value;
   }

   public boolean isEqualAverage() {
      return this.b;
   }

   public void setEqualAverage(boolean value) {
      this.b = value;
      if (value) {
         this.c = 0;
      }

   }

   public int getStdDev() {
      return this.c;
   }

   public void setStdDev(int value) {
      if (value >= 0 && value <= 3) {
         if (value >= 1 && value <= 3) {
            this.setEqualAverage(false);
         }

         this.c = value;
      } else {
         throw new CellsException(2, "Please input a integer between 0 and 3");
      }
   }
}
